home *** CD-ROM | disk | FTP | other *** search
- Path: EU.net!sun4nl!xs4all!marketgraph!rvg
- From: rvg@marketgraph.xs4all.nl (Ruud van Gaal)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: alloca() on Amiga?
- Keywords: Keywords: alloca
- Message-ID: <393brdv60.alamito@marketgraph.xs4all.nl>
- Date: Tue, 9 Apr 96 17:59:57 DST
- References: <2720tdg60.alamito@marketgraph.xs4all.nl> <4k1oce$lub@blackice.winternet.com> <DpE7Ip.7or@unx.sas.com>
- Reply-To: rvg@marketgraph.xs4all.nl
- X-Newsreader: Alamito Mail and News Manager (V2.0.4 for Waffle) registered to MARKETGRAPH VISUAL AUTOMATION
-
- In <DpE7Ip.7or@unx.sas.com> walker@chang.unx.sas.com (Doug Walker) wrote:
- >In article <4k1oce$lub@blackice.winternet.com>,
- >Anthony Pang <apang@winternet.com> wrote:
- >>In article <2720tdg60.alamito@marketgraph.xs4all.nl>,
- >>Ruud van Gaal <rvg@marketgraph.xs4all.nl> wrote:
- >>>Is there a nice way to get a working alloca() function for the Amiga?
- >>>It is present on all PC and Unix C implementations, but not on the Amiga.
- >>>(it allocates mem from the stack, automatically freeing it upon return
- from
- >>>subroutine).
- >>
- >>GCC and SAS have alloca(). I think DICE has it too.
- >
- >This is not correct. SAS/C does not supply an alloca() function.
- >Third parties may have been able to implement one, but it's not
- >a trivial operation.
-
- Indeed, SAS doesn't have one, but I've received source code for an
- implementation which does not free memory upon function exit (would be very
- tricky), but somewhere at a later point (garbage collection). It's not really
- the ideal thing, but it's close (enough for now).
- Thanks for all the replies!
-
-
-
- --
- Ruud van Gaal
- MarketGraph Visual Automation
- E-Mail : rvg@marketgraph.xs4all.nl
- DoomShell 4.5 homepage: http://www.xs4all.nl/~jwkorver
- "...Works fascinates me. I could sit and watch it for hours..."
-
-